package top.buluoluo.ordersservice.service;

import org.apache.ibatis.annotations.Mapper;
import top.buluoluo.commoncore.domain.response.Result;
import top.buluoluo.ordersservice.dto.request.OrderAddRequest;
import top.buluoluo.ordersservice.dto.request.OrderPageRequest;
import top.buluoluo.ordersservice.dto.request.OrderPayRequest;
import top.buluoluo.ordersservice.dto.respone.OrderAddDTO;
import top.buluoluo.ordersservice.dto.respone.OrderDTO;
import top.buluoluo.ordersservice.dto.respone.OrderPayDTO;
import top.buluoluo.ordersservice.dto.result.PageResult;

@Mapper
public interface OrderService {
//    根据订单id查询订单信息
Result<OrderDTO> getOrderById(String orderId);
//    根据用户id获取订单信息
Result<PageResult<OrderDTO>>getOrderByUserId(OrderPageRequest request);
//    新增订单
Result<OrderAddDTO> addOrder(OrderAddRequest  request);
//   支付订单
Result<OrderPayDTO> payOrder(OrderPayRequest request);
}
